/**
 * Methoden zur Ausgabe
 * 
 * @author Torbjoern K.
 */

import java.util.ResourceBundle;

public class output {
    // definieren einer Abkuerzung fuer Internationalisierung
    private static final ResourceBundle internationalize = java.util.ResourceBundle.getBundle("internationalize");
    
     /**
     * Gibt das Menu auf dem Bildschirm aus
     */
    public static void menu() {
        System.out.println(internationalize.getString("SeperationLine"));
        System.out.println(internationalize.getString("Titel"));
        System.out.println(internationalize.getString("SeperationLine"));
        System.out.println(internationalize.getString("MenuSubhead1"));
        System.out.println(internationalize.getString("Menu1"));
        System.out.println(internationalize.getString("Menu2"));
        System.out.println(internationalize.getString("Menu3"));
        System.out.println(internationalize.getString("Menu4"));
        System.out.println(internationalize.getString("Menu5"));
        System.out.println(internationalize.getString("SeperationDots"));
        System.out.println(internationalize.getString("MenuSubhead2"));
        System.out.println(internationalize.getString("Menu6"));
        System.out.println(internationalize.getString("Menu7"));
        System.out.println(internationalize.getString("SeperationDots"));
        System.out.println(internationalize.getString("MenuSubhead3"));
        System.out.println(internationalize.getString("Menu8"));
        System.out.println(internationalize.getString("Menu9"));
        System.out.println(internationalize.getString("SeperationDots"));
        System.out.println(internationalize.getString("Quit"));
        System.out.println(internationalize.getString("SeperationLine"));
    }
    
    /**
     * Gibt die Werte eines Arrays strukturiert aus
     * @param array
     */
    public static void printArray(int[] array) {
        for(int i = 0; i < array.length; i++) {
                System.out.println((i+1) + internationalize.getString("XElement") + ": " + array[i]);
            }
    }
    
    /**
     * Gibt die Werte einer nXm-Matrix strukturiert aus
     * @param matrix
     */
    public static void printMatrix(int[][] matrix) {
        for(int i = 0; i < matrix.length; i++) {
            for(int j = 0; j < matrix[i].length; j++) {
                System.out.print(matrix[i][j] + "\t");
            }
            System.out.print("\n");
        }
    }
}
